<div ng-controller="ruleCtrl">
    <uib-tabset>
        <uib-tab heading="{{dict.name}}" ng-repeat="dict in curInstance.elementList" select="findRules(dict)" >
            <div class="x_panel" >
                <div class="form-inline">
                    <div class="form-group">
                        <label>样式名称 </label>
                        <input type="text" ng-model="dict.search.name"  class="form-control" />
                    </div>
                    <div class="form-group">
                        <label>样式Id </label>
                        <input type="number" ng-model="dict.search.code"  class="form-control" />
                    </div>
                    <button class="btn btn-primary" ng-click="localFind(1)" >查询</button>
                    <button class="btn btn-default" ng-click="dict.search={}" >重置</button>
                </div>
            </div>

            <table class="table table-bordered table-striped table-hover"  >
                <thead class="title">
                <tr>
                    <th class="text-center">NO</th>
                    <th >类型名称</th>
                    <th >AliasName</th>
                    <th >StyleID</th>
                    <th>tagForModify</th>
                    <th ng-show="['point','line','roadSign'].indexOf(dict.id)>-1">文本AliasName</th>
                    <th ng-show="['point','line','roadSign'].indexOf(dict.id)>-1">文本StyleID</th>
                    <th ng-show="['point','line','roadSign'].indexOf(dict.id)>-1">文本tagForModify</th>
                   <!-- <th style="width:120px">操作</th>-->
                </tr>
                </thead>
                <tbody>
                <tr ng-if="dict.pageModel.data.length == 0"><td colspan="100" class="text-center">暂无记录</td></tr>
                <tr ng-repeat="item in dict.pageModel.data" >
                    <td class="text-center">{{$index+1+dict.pageModel.pageSize*(dict.pageModel.currentPage-1)}}</td>
                    <td>{{item.text}}</td>
                    <td>{{item.name}}</td>
                    <td>{{item.code}}</td>
                    <th>{{item.tagForModify}}</th>
                    <td ng-show="['point','line','roadSign'].indexOf(dict.id)>-1">{{item.textName}}</td>
                    <td ng-show="['point','line','roadSign'].indexOf(dict.id)>-1">{{item.textStyleID}}</td>
                    <td ng-show="['point','line','roadSign'].indexOf(dict.id)>-1">{{item.textTag}}</td>
                  <!--  <td>
                        <a href='javascript:void(0)' ng-click='showEditModal(item)' class='btn btn-xs btn-link'><span class='fa fa-edit'></span>编辑</a>
                        <a href='javascript:void(0)' ng-click='del(item)' class='btn btn-xs btn-link'><span class='fa fa-trash'></span>删除</a>
                    </td>-->
                </tr>
                </tbody>
            </table>
            <div class="page-footer clearfix">
                <page page-model="dict.pageModel" find="localFind"></page>
            </div>
        </uib-tab>
    </uib-tabset>
</div>
